﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace PFAGame
{
    class Berserker : ALoot
    {
        Texture2D tmpTex;

        private float damageBonus = 1.2f;
        private float speedBonus = 1.3f;
        private float buffDuration = 15f;

        public override void init()
        {
            base.init();
            obj = AObject.e_object.BERSERKER;
            tmpTex = ScreenManager.Singleton.Game.Content.Load<Texture2D>("booster");
        }

        protected override void applyBuff(APlayer player)
        {
            base.applyBuff(player);
            player.AttackSpeedBuffMultiplicator = speedBonus;
            player.DammageBuffMultiplicator = damageBonus;
            player.BuffDuration = buffDuration;
            player.ResistBuffAdd = 0;
            GameplayScreen.Singleton.DeleteLootList.Add(this);
        }

        public override void draw(GameTime gameTime, Camera camera)
        {
            base.draw(gameTime, camera);
            ScreenManager.Singleton.SpriteBatch.Draw(tmpTex, displayRectangle, Color.White);
        }
    }
}
